APPNAME=ser
PORT=1234
LIBPATH=`pwd`/../lib
CFLAGS+=-I${LIBPATH}
LDFLAGS+=-L${LIBPATH}
CC=gcc
all:
	${CC} ${CFLAGS} server.c -o ${APPNAME} ${LDFLAGS} -lds18b20ser -lpthread -ldl 
clean:
	rm -f ${APPNAME}
run:
	export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:${LIBPATH};./${APPNAME} -p ${PORT}
